package com.mt.service.impl;

import com.mt.mapper.AclMapper;
import com.mt.pojo.User;
import com.mt.service.UserService;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;


@SpringBootTest
@RunWith(SpringRunner.class)
public class test extends TestCase {
    @Resource
    AclMapper aclMapper;

    @Autowired
    UserService userService;

    @Test
    public void test() {
        User user1 = new User();
        user1.setPhone("18933287883");
        user1.setPassword("123456");
        String login = userService.login(user1);
        System.out.println(login);

        userService.AuthUser(login,null,null,"3");
    }
}